/**
 * 
 */
package com.base.myproject.client.busi.service;

import java.io.Serializable;

/**
 * 专门处理服务类的会员管理，主要是会员号，会员名
 * 与会员的资金记录
 * @author zgw
 *2009-10-20 上午11:32:38
 * javazgw@gmail.com
 */
public class Associator  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1035567889022002L;

	String ccode;
	String s_cardno;
	String name;
	String type;
	String phone;
	double jifen;
	
	double finance;
	String sql= "select sum(finance*dc) as finance from s_service_finance where ccode={0} group by ccode ";
/**
 * 必须有个无参数的构造函数，否则不能被序列化
 */
	
	public Associator()
	{
		
	}
	public Associator(String id)
	{
		this.ccode = id;
	}
	 
	void init()
	{
		
	}
	
	void load()
	{
		
	}

/**
	 * @return the s_cardno
	 */
	public String getS_cardno() {
		return s_cardno;
	}
	/**
	 * @param s_cardno the s_cardno to set
	 */
	public void setS_cardno(String s_cardno) {
		this.s_cardno = s_cardno;
	}
/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}
	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}
/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * @return the jifen
	 */
	public double getJifen() {
		return jifen;
	}
	/**
	 * @param jifen the jifen to set
	 */
	public void setJifen(double jifen) {
		this.jifen = jifen;
	}
/**
	 * @return the sql
	 */
	public String getSql() {
		return sql;
	}
	/**
	 * @param sql the sql to set
	 */
	public void setSql(String sql) {
		this.sql = sql;
	}
/**
 * 加入资金
 * @param f
 */
	public void AddFinance(double f)
	{
		
	}
	
	/*
	 * 减少资金
	 */
	
	public void SubtractFinance(double f)
	{
		
	}

	/**
	 * @return the id
	 */
	public String getCcode() {
		return ccode;
	}
	/**
	 * @param id the id to set
	 */
	public void setCcode(String id) {
		this.ccode = id;
	}

	/**
	 * @return the finance
	 */
	public double getFinance() {
		return finance;
	}
	/**
	 * @param finance the finance to set
	 */
	public void setFinance(double finance) {
		this.finance = finance;
	}
	
}
